﻿<UserControl x:Class="BuildnDeploy.SettingsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="190" Width="435">
    <UserControl.Resources>
        <Style TargetType="TextBox" >
            <Setter Property="Height" Value="25" />
            <Setter Property="Width" Value="400" />
            <Setter Property="Grid.Column" Value="0" />
            <Setter Property="Margin" Value="5,2,0,3" />
        </Style>
        <Style TargetType="Button" >
            <Setter Property="Grid.Column" Value="1" />
            <Setter Property="Width" Value="25" />
            <Setter Property="Height" Value="25" />
            <Setter Property="Content" Value="..." />
        </Style>
        <Style TargetType="TextBlock" >
            <Setter Property="Margin" Value="5" />
            <Setter Property="FontSize" Value="16" />
        </Style>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="70" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="400" />
            <ColumnDefinition Width="35" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="Specify the commands that will be run by the following actions. They can be executables or scripts." TextWrapping="Wrap" />
        
        <TextBlock Grid.Row="1" Text="Build" />
        <TextBox Grid.Row="2" Text="{Binding BuildCommandStr, Mode=TwoWay}" />
        <Button Grid.Row="2" Command="{Binding SelectFilenameCommand}" CommandParameter="build" />

        <TextBlock Grid.Row="3" Text="Deploy" />
        <TextBox Grid.Row="4" Text="{Binding DeployCommandStr, Mode=TwoWay}" />
        <Button Grid.Row="4" Command="{Binding SelectFilenameCommand}" CommandParameter="deploy" />
    </Grid>
</UserControl>
